package com.ruoyi.drinkwater.service.impl;

import java.util.List;

import com.ruoyi.common.utils.uuid.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.drinkwater.mapper.BusWaterDrinksourceProjectlistMapper;
import com.ruoyi.drinkwater.domain.BusWaterDrinksourceProjectlist;
import com.ruoyi.drinkwater.service.IBusWaterDrinksourceProjectlistService;

/**
 * [项目工程清单]Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-03
 */
@Service
public class BusWaterDrinksourceProjectlistServiceImpl implements IBusWaterDrinksourceProjectlistService 
{
    @Autowired
    private BusWaterDrinksourceProjectlistMapper busWaterDrinksourceProjectlistMapper;

    /**
     * 查询[项目工程清单]
     * 
     * @param id [项目工程清单]主键
     * @return [项目工程清单]
     */
    @Override
    public BusWaterDrinksourceProjectlist selectBusWaterDrinksourceProjectlistById(String id)
    {
        return busWaterDrinksourceProjectlistMapper.selectBusWaterDrinksourceProjectlistById(id);
    }

    /**
     * 查询[项目工程清单]列表
     * 
     * @param busWaterDrinksourceProjectlist [项目工程清单]
     * @return [项目工程清单]
     */
    @Override
    public List<BusWaterDrinksourceProjectlist> selectBusWaterDrinksourceProjectlistList(BusWaterDrinksourceProjectlist busWaterDrinksourceProjectlist)
    {
        return busWaterDrinksourceProjectlistMapper.selectBusWaterDrinksourceProjectlistList(busWaterDrinksourceProjectlist);
    }

    /**
     * 新增[项目工程清单]
     * 
     * @param busWaterDrinksourceProjectlist [项目工程清单]
     * @return 结果
     */
    @Override
    public int insertBusWaterDrinksourceProjectlist(BusWaterDrinksourceProjectlist busWaterDrinksourceProjectlist)
    {
        busWaterDrinksourceProjectlist.setId(UUID.randomUUID().toString());
        return busWaterDrinksourceProjectlistMapper.insertBusWaterDrinksourceProjectlist(busWaterDrinksourceProjectlist);
    }

    /**
     * 修改[项目工程清单]
     * 
     * @param busWaterDrinksourceProjectlist [项目工程清单]
     * @return 结果
     */
    @Override
    public int updateBusWaterDrinksourceProjectlist(BusWaterDrinksourceProjectlist busWaterDrinksourceProjectlist)
    {
        return busWaterDrinksourceProjectlistMapper.updateBusWaterDrinksourceProjectlist(busWaterDrinksourceProjectlist);
    }

    /**
     * 批量删除[项目工程清单]
     * 
     * @param ids 需要删除的[项目工程清单]主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterDrinksourceProjectlistByIds(String[] ids)
    {
        return busWaterDrinksourceProjectlistMapper.deleteBusWaterDrinksourceProjectlistByIds(ids);
    }

    /**
     * 删除[项目工程清单]信息
     * 
     * @param id [项目工程清单]主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterDrinksourceProjectlistById(String id)
    {
        return busWaterDrinksourceProjectlistMapper.deleteBusWaterDrinksourceProjectlistById(id);
    }
}
